3.893 \(\int \frac{x^4}{a-b x^2+c x^4} \, dx\)

Optimal. Leaf size=179 \[ -\frac{\left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} c^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{\left (\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}+b\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} c^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{x}{c} \]

[Out]

x/c - ((b - (b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTanh[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b
- Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - ((b + (b^
2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTanh[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*
a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b + Sqrt[b^2 - 4*a*c]])

_______________________________________________________________________________________

Rubi [A]  time = 0.753893, antiderivative size = 179, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158 \[ -\frac{\left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} c^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{\left (\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}+b\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} c^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{x}{c} \]

Antiderivative was successfully verified.

[In]  Int[x^4/(a - b*x^2 + c*x^4),x]

[Out]

x/c - ((b - (b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTanh[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b
- Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - ((b + (b^
2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTanh[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*
a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b + Sqrt[b^2 - 4*a*c]])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 53.8676, size = 189, normalized size = 1.06 \[ \frac{x}{c} - \frac{\sqrt{2} \left (- 2 a c + b^{2} + b \sqrt{- 4 a c + b^{2}}\right ) \operatorname{atanh}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b + \sqrt{- 4 a c + b^{2}}}} \right )}}{2 c^{\frac{3}{2}} \sqrt{b + \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} + \frac{\sqrt{2} \left (- 2 a c + b^{2} - b \sqrt{- 4 a c + b^{2}}\right ) \operatorname{atanh}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b - \sqrt{- 4 a c + b^{2}}}} \right )}}{2 c^{\frac{3}{2}} \sqrt{b - \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**4/(c*x**4-b*x**2+a),x)

[Out]

x/c - sqrt(2)*(-2*a*c + b**2 + b*sqrt(-4*a*c + b**2))*atanh(sqrt(2)*sqrt(c)*x/sq
rt(b + sqrt(-4*a*c + b**2)))/(2*c**(3/2)*sqrt(b + sqrt(-4*a*c + b**2))*sqrt(-4*a
*c + b**2)) + sqrt(2)*(-2*a*c + b**2 - b*sqrt(-4*a*c + b**2))*atanh(sqrt(2)*sqrt
(c)*x/sqrt(b - sqrt(-4*a*c + b**2)))/(2*c**(3/2)*sqrt(b - sqrt(-4*a*c + b**2))*s
qrt(-4*a*c + b**2))

_______________________________________________________________________________________

Mathematica [A]  time = 0.224945, size = 208, normalized size = 1.16 \[ \frac{\left (b \sqrt{b^2-4 a c}-2 a c+b^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{-\sqrt{b^2-4 a c}-b}}\right )}{\sqrt{2} c^{3/2} \sqrt{b^2-4 a c} \sqrt{-\sqrt{b^2-4 a c}-b}}+\frac{\left (b \sqrt{b^2-4 a c}+2 a c-b^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}-b}}\right )}{\sqrt{2} c^{3/2} \sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}-b}}+\frac{x}{c} \]

Antiderivative was successfully verified.

[In]  Integrate[x^4/(a - b*x^2 + c*x^4),x]

[Out]

x/c + ((b^2 - 2*a*c + b*Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[-b -
Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b^2 - 4*a*c]*Sqrt[-b - Sqrt[b^2 - 4*a
*c]]) + ((-b^2 + 2*a*c + b*Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[-b
 + Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b^2 - 4*a*c]*Sqrt[-b + Sqrt[b^2 -
4*a*c]])

_______________________________________________________________________________________

Maple [B]  time = 0.035, size = 343, normalized size = 1.9 \[{\frac{x}{c}}+{\frac{\sqrt{2}b}{2\,c}\arctan \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}+{\sqrt{2}a\arctan \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}{\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}-{\frac{\sqrt{2}{b}^{2}}{2\,c}\arctan \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}{\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}-{\frac{\sqrt{2}b}{2\,c}{\it Artanh} \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}+{\sqrt{2}a{\it Artanh} \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}{\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}-{\frac{\sqrt{2}{b}^{2}}{2\,c}{\it Artanh} \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}{\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^4/(c*x^4-b*x^2+a),x)

[Out]

x/c+1/2/c*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((-b+(-4*
a*c+b^2)^(1/2))*c)^(1/2))*b+1/(-4*a*c+b^2)^(1/2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2)
)*c)^(1/2)*arctan(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*a-1/2/c/(-4*a*c
+b^2)^(1/2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((-b+(-
4*a*c+b^2)^(1/2))*c)^(1/2))*b^2-1/2/c*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*a
rctanh(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b+1/(-4*a*c+b^2)^(1/2)*2^(1
/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))
*c)^(1/2))*a-1/2/c/(-4*a*c+b^2)^(1/2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*a
rctanh(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b^2

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \frac{x}{c} + \frac{\int \frac{b x^{2} - a}{c x^{4} - b x^{2} + a}\,{d x}}{c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^4/(c*x^4 - b*x^2 + a),x, algorithm="maxima")

[Out]

x/c + integrate((b*x^2 - a)/(c*x^4 - b*x^2 + a), x)/c

_______________________________________________________________________________________

Fricas [A]  time = 0.279194, size = 1419, normalized size = 7.93 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^4/(c*x^4 - b*x^2 + a),x, algorithm="fricas")

[Out]

-1/2*(sqrt(1/2)*c*sqrt((b^3 - 3*a*b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^4 - 2*a*b^2*c + a^2*c^2)/(b^2*c^6 - 4*a*c^7)))/(b^2*c^3 - 4*a*c^4))) - sqrt(1
/2)*c*sqrt((b^3 - 3*a*b*c - (b^2*c^3 - 4*a*c^4)*sqrt((b^4 - 2*a*b^2*c + a^2*c^2)
/(b^2*c^6 - 4*a*c^7)))/(b^2*c^3 - 4*a*c^4))*log(-2*(a*b^2 - a^2*c)*x - sqrt(1/2)
*(b^4 - 5*a*b^2*c + 4*a^2*c^2 + (b^3*c^3 - 4*a*b*c^4)*sqrt((b^4 - 2*a*b^2*c + a^
2*c^2)/(b^2*c^6 - 4*a*c^7)))*sqrt((b^3 - 3*a*b*c - (b^2*c^3 - 4*a*c^4)*sqrt((b^4
 - 2*a*b^2*c + a^2*c^2)/(b^2*c^6 - 4*a*c^7)))/(b^2*c^3 - 4*a*c^4))) - 2*x)/c

_______________________________________________________________________________________

Sympy [A]  time = 5.65699, size = 129, normalized size = 0.72 \[ \operatorname{RootSum}{\left (t^{4} \left (256 a^{2} c^{5} - 128 a b^{2} c^{4} + 16 b^{4} c^{3}\right ) + t^{2} \left (- 48 a^{2} b c^{2} + 28 a b^{3} c - 4 b^{5}\right ) + a^{3}, \left ( t \mapsto t \log{\left (x + \frac{- 32 t^{3} a b c^{4} + 8 t^{3} b^{3} c^{3} - 4 t a^{2} c^{2} + 8 t a b^{2} c - 2 t b^{4}}{a^{2} c - a b^{2}} \right )} \right )\right )} + \frac{x}{c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**4/(c*x**4-b*x**2+a),x)

[Out]

RootSum(_t**4*(256*a**2*c**5 - 128*a*b**2*c**4 + 16*b**4*c**3) + _t**2*(-48*a**2
*b*c**2 + 28*a*b**3*c - 4*b**5) + a**3, Lambda(_t, _t*log(x + (-32*_t**3*a*b*c**
4 + 8*_t**3*b**3*c**3 - 4*_t*a**2*c**2 + 8*_t*a*b**2*c - 2*_t*b**4)/(a**2*c - a*
b**2)))) + x/c

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.786163, size = 1, normalized size = 0.01 \[ \mathit{Done} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^4/(c*x^4 - b*x^2 + a),x, algorithm="giac")

[Out]

Done